<template>

  <div class="managementrouter home">
    <el-row style="" class="title-Breadcrumb">
      <span style="padding: 0;" class="font26">ManageMent</span>
      <!--    主页内容中那四个框-->
    </el-row>
    <el-row class="management-height">
      <el-col :md="5" :lg="3" class="left-navBar hidden-sm-and-down">
        <el-col class="pt40">
          <el-menu
            default-active="2"
            router
            class="el-menu-vertical-demo" style="align-self: center;border-right: hidden">
            <el-menu-item index="document" style="height: 50px;">
              <div class="div-center">
                <svg-icon icon-class="document"
                         class="font50"/>
                <span slot="title">账号设置</span>
              </div>


            </el-menu-item>
            <el-menu-item index="setaccount" style="height: 50px;">
              <div class="div-center">
                <svg-icon icon-class="setaccount"
                          class="font50"
                          />
                <span slot="title">配置账户</span>
              </div>
            </el-menu-item>
            <el-menu-item index="4" style="height: 50px;">
              <div class="div-center">
                <svg-icon icon-class="systemset"
                          class="font50"
                          />
                <span slot="title">系统设置</span>
              </div>
            </el-menu-item>
            <el-menu-item index="/managementrouter/utilsbox" style="height: 50px;">
              <div class="div-center">
                <svg-icon icon-class="utilbox"
                          class="font50"
                          style="padding: 0"/>
                <span slot="title">工具箱</span>
              </div>
            </el-menu-item>
          </el-menu>
        </el-col>
      </el-col>
      <el-col :md="19" :lg="21" :sm="24" style="height: 100%;">
        <transition name="fade-transform" mode="out-in">
          <keep-alive :include="cachedViews">
            <router-view :key="key"/>
          </keep-alive>
        </transition>
      </el-col>


    </el-row>
  </div>


</template>

<script>
  export default {
    name: "managementrouter",
    computed: {
      cachedViews() {
        return this.$store.state.tagsView.cachedViews
      },
      key() {
        return this.$route.path
      }
    }
  }
</script>


<style>

  .left-navBar .el-menu-item{


  }

</style>
<style scoped>
  .home {
    padding: 0 20px 20px 20px;
    background-color: #F5F3F7;
    width: 100%;
    height: 100%;
  }

  .div-center {
    display: flex;
    align-content: flex-start;
    align-items: center;
    justify-content: center;
    margin-top: 16px;
  }

  .left-navBar {
    height: 100%;
    background-color: #FFF;
    border-radius: 10px;
  }

  .management-height {
    height: 90%;
  }

  @media (max-width: 992px) {
    .home {
      padding: 0 20px 20px 0;
    }

    .title-Breadcrumb {
      padding:  25px 0  25px 20px;
    }
    .management-height {
      height:85%;
    }
  }

  @media (min-width: 993px) {
    .home {
      padding: 0 20px 20px 20px;
    }

    .title-Breadcrumb {
      padding-left: 0;
      padding-top: 25px; padding-bottom: 20px
    }

    .management-height {
      height: 90%;
    }
  }
</style>
